Creating
an MCIWnd Window
The MCIWndCreate
// Global variable and constants
// extern HINSTANCE g_hinst; instance handle
// extern HWND g_hwndMCIWnd; MCIWnd window handle
case WM_COMMAND:
switch
(wParam) {
case
IDM_CREATEMCIWND:
g_hwndMCIWnd = MCIWndCreate(hwnd, g_hinst, NULL,
"sample.avi");
break;
}
break;
Note You could also
specify NULL for both the parent window handle and the window styles, in which
case the default window styles would be WS_OVERLAPPED and WS_VISIBLE.